import './assets/main.css'
import 'virtual:uno.css'

import { createApp } from 'vue'

import App from './App.vue'
import { setupRouter } from './router'
import { setupStore } from './stores'
import { setupI18n } from './locales'

const bootstrap = async () => {
  const app = createApp(App)
  // 加载pinia
  setupStore(app)
  // 加载i18n
  await setupI18n(app)
  // 加载路由
  await setupRouter(app)

  app.mount('#app')
}

bootstrap()
